package com.kaibes.platform.member;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

import com.kaibes.platform.member.util.MemberLevelUtils;
import com.kaibes.platform.member.util.MemberUtils;
import com.kaibes.platform.member.util.MemberVipUtils;

@ControllerAdvice
public class MemberControllerAdvice {

    @Autowired
    private MemberUtils memberUtils;
    @Autowired
    private MemberVipUtils memberVipUtils;
    @Autowired
    private MemberLevelUtils memberLevelUtils;
    
    @ModelAttribute("memberUtils")
    public MemberUtils memberUtils() {
        return memberUtils;
    }
    
    @ModelAttribute("memberVipUtils")
    public MemberVipUtils memberVipUtils() {
        return memberVipUtils;
    }
    
    @ModelAttribute("memberLevelUtils")
    public MemberLevelUtils memberLevelUtils() {
        return memberLevelUtils;
    }
    
}
